package com.woniuxy.homepage.core.mapper;

import com.woniuxy.homepage.core.model.CarBrand;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author gmx
 * @since 2021-06-30
 */
public interface CarBrandMapper extends BaseMapper<CarBrand> {

    @Select("select * from car_brand where hot = 1 and flag = 0")
    List<CarBrand> selectByHot();


    @Select("select * from car_brand order by brand_name")
    List<CarBrand> selectAll();
}
